package com.xxiongb.business.repository.entity;

//思考一下如何快速查询，为了查询优化
public class FeatureChoseOption {
	private int featureChoiceIndex = -1;
	private int chooseOption = -1;
	private int featureType = -1;
	private int optionType = 0;
	
	public int getFeatureChoiceIndex() {
		return featureChoiceIndex;
	}
	public void setFeatureChoiceIndex(int featureChoiceIndex) {
		this.featureChoiceIndex = featureChoiceIndex;
	}
	public int getChooseOption() {
		return chooseOption;
	}
	public void setChooseOption(int chooseOption) {
		this.chooseOption = chooseOption;
	}
	public int getFeatureType() {
		return featureType;
	}
	public void setFeatureType(int featureType) {
		this.featureType = featureType;
	}
	
	public int getOptionType() {
		return optionType;
	}
	public void setOptionType(int optionType) {
		this.optionType = optionType;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + chooseOption;
		result = prime * result + featureChoiceIndex;
		result = prime * result + featureType;
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof FeatureChoseOption))
			return false;
		FeatureChoseOption other = (FeatureChoseOption) obj;
		if (chooseOption != other.chooseOption)
			return false;
		if (featureChoiceIndex != other.featureChoiceIndex)
			return false;
		if (featureType != other.featureType)
			return false;
		return true;
	}
}
